package edu.gmu.router;

import edu.gmu.messages.Client;
import edu.gmu.middleware.Sink;

/**
 * ClientEntry represents bundling of Client and sink.
 * 
 * @author  James H. Pope
 * @version $Revision:$ $Date:$
 */
public class ClientEntry //implements Message
{
    /**
     * client
     */
    private Client client = null;
    
    /**
     * sink
     */
    private Sink sink = null;
    
    
    /**
     * Creates a new ClientEntry with default parameters.
     * @param client
     * @param sink
     */
    public ClientEntry( Client client, Sink sink )
    {
        this.client  = client;
        this.sink    = sink;
    }
    
    /**
     * Gets the client
     * @return client
     */
    public Client getClient( )
    {
        return this.client;
    }
    
    /**
     * Gets the sink
     * @return sink
     */
    public Sink getSink( )
    {
        return this.sink;
    }
    
    public String toString()
    {
        StringBuffer buf = new StringBuffer();
        buf.append( " client.name="+client.name );
        buf.append( " sink="+sink );
        return buf.toString();
    }
}
